package com.example.work4.adapter

import androidx.databinding.ViewDataBinding
import com.example.work4.BR
import com.example.work4.adapter.viewHolder.MomentViewHolder
import com.example.work4.R
import com.example.work4.data.Record


class RecordListAdapter : BaseAdapter<Record>(){


    override fun onBindViewHolder(holder: MomentViewHolder, position: Int) {
        val binding : ViewDataBinding = holder.dataBinding
        binding.setVariable(BR.moments, data[position])
    }

    override fun getItemViewType(position: Int): Int {
        return R.layout.record_item
    }



}